package com.lebang.example;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

public class CencesInviteExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public CencesInviteExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(LocalDate value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(LocalDate value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(LocalDate value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(LocalDate value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(LocalDate value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(LocalDate value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<LocalDate> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<LocalDate> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(LocalDate value1, LocalDate value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(LocalDate value1, LocalDate value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("`time` is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("`time` is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Integer value) {
            addCriterion("`time` =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Integer value) {
            addCriterion("`time` <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Integer value) {
            addCriterion("`time` >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("`time` >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Integer value) {
            addCriterion("`time` <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Integer value) {
            addCriterion("`time` <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Integer> values) {
            addCriterion("`time` in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Integer> values) {
            addCriterion("`time` not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Integer value1, Integer value2) {
            addCriterion("`time` between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("`time` not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andInviteNumIsNull() {
            addCriterion("invite_num is null");
            return (Criteria) this;
        }

        public Criteria andInviteNumIsNotNull() {
            addCriterion("invite_num is not null");
            return (Criteria) this;
        }

        public Criteria andInviteNumEqualTo(Integer value) {
            addCriterion("invite_num =", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumNotEqualTo(Integer value) {
            addCriterion("invite_num <>", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumGreaterThan(Integer value) {
            addCriterion("invite_num >", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("invite_num >=", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumLessThan(Integer value) {
            addCriterion("invite_num <", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumLessThanOrEqualTo(Integer value) {
            addCriterion("invite_num <=", value, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumIn(List<Integer> values) {
            addCriterion("invite_num in", values, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumNotIn(List<Integer> values) {
            addCriterion("invite_num not in", values, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumBetween(Integer value1, Integer value2) {
            addCriterion("invite_num between", value1, value2, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andInviteNumNotBetween(Integer value1, Integer value2) {
            addCriterion("invite_num not between", value1, value2, "inviteNum");
            return (Criteria) this;
        }

        public Criteria andValidNumIsNull() {
            addCriterion("valid_num is null");
            return (Criteria) this;
        }

        public Criteria andValidNumIsNotNull() {
            addCriterion("valid_num is not null");
            return (Criteria) this;
        }

        public Criteria andValidNumEqualTo(Integer value) {
            addCriterion("valid_num =", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumNotEqualTo(Integer value) {
            addCriterion("valid_num <>", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumGreaterThan(Integer value) {
            addCriterion("valid_num >", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("valid_num >=", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumLessThan(Integer value) {
            addCriterion("valid_num <", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumLessThanOrEqualTo(Integer value) {
            addCriterion("valid_num <=", value, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumIn(List<Integer> values) {
            addCriterion("valid_num in", values, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumNotIn(List<Integer> values) {
            addCriterion("valid_num not in", values, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumBetween(Integer value1, Integer value2) {
            addCriterion("valid_num between", value1, value2, "validNum");
            return (Criteria) this;
        }

        public Criteria andValidNumNotBetween(Integer value1, Integer value2) {
            addCriterion("valid_num not between", value1, value2, "validNum");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishIsNull() {
            addCriterion("new_task_finish is null");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishIsNotNull() {
            addCriterion("new_task_finish is not null");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishEqualTo(Integer value) {
            addCriterion("new_task_finish =", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishNotEqualTo(Integer value) {
            addCriterion("new_task_finish <>", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishGreaterThan(Integer value) {
            addCriterion("new_task_finish >", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishGreaterThanOrEqualTo(Integer value) {
            addCriterion("new_task_finish >=", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishLessThan(Integer value) {
            addCriterion("new_task_finish <", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishLessThanOrEqualTo(Integer value) {
            addCriterion("new_task_finish <=", value, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishIn(List<Integer> values) {
            addCriterion("new_task_finish in", values, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishNotIn(List<Integer> values) {
            addCriterion("new_task_finish not in", values, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishBetween(Integer value1, Integer value2) {
            addCriterion("new_task_finish between", value1, value2, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskFinishNotBetween(Integer value1, Integer value2) {
            addCriterion("new_task_finish not between", value1, value2, "newTaskFinish");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardIsNull() {
            addCriterion("new_task_award is null");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardIsNotNull() {
            addCriterion("new_task_award is not null");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardEqualTo(Long value) {
            addCriterion("new_task_award =", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardNotEqualTo(Long value) {
            addCriterion("new_task_award <>", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardGreaterThan(Long value) {
            addCriterion("new_task_award >", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardGreaterThanOrEqualTo(Long value) {
            addCriterion("new_task_award >=", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardLessThan(Long value) {
            addCriterion("new_task_award <", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardLessThanOrEqualTo(Long value) {
            addCriterion("new_task_award <=", value, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardIn(List<Long> values) {
            addCriterion("new_task_award in", values, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardNotIn(List<Long> values) {
            addCriterion("new_task_award not in", values, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardBetween(Long value1, Long value2) {
            addCriterion("new_task_award between", value1, value2, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andNewTaskAwardNotBetween(Long value1, Long value2) {
            addCriterion("new_task_award not between", value1, value2, "newTaskAward");
            return (Criteria) this;
        }

        public Criteria andFinishNumIsNull() {
            addCriterion("finish_num is null");
            return (Criteria) this;
        }

        public Criteria andFinishNumIsNotNull() {
            addCriterion("finish_num is not null");
            return (Criteria) this;
        }

        public Criteria andFinishNumEqualTo(Integer value) {
            addCriterion("finish_num =", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumNotEqualTo(Integer value) {
            addCriterion("finish_num <>", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumGreaterThan(Integer value) {
            addCriterion("finish_num >", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("finish_num >=", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumLessThan(Integer value) {
            addCriterion("finish_num <", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumLessThanOrEqualTo(Integer value) {
            addCriterion("finish_num <=", value, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumIn(List<Integer> values) {
            addCriterion("finish_num in", values, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumNotIn(List<Integer> values) {
            addCriterion("finish_num not in", values, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumBetween(Integer value1, Integer value2) {
            addCriterion("finish_num between", value1, value2, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFinishNumNotBetween(Integer value1, Integer value2) {
            addCriterion("finish_num not between", value1, value2, "finishNum");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardIsNull() {
            addCriterion("first_cash_award is null");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardIsNotNull() {
            addCriterion("first_cash_award is not null");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardEqualTo(Long value) {
            addCriterion("first_cash_award =", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardNotEqualTo(Long value) {
            addCriterion("first_cash_award <>", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardGreaterThan(Long value) {
            addCriterion("first_cash_award >", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardGreaterThanOrEqualTo(Long value) {
            addCriterion("first_cash_award >=", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardLessThan(Long value) {
            addCriterion("first_cash_award <", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardLessThanOrEqualTo(Long value) {
            addCriterion("first_cash_award <=", value, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardIn(List<Long> values) {
            addCriterion("first_cash_award in", values, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardNotIn(List<Long> values) {
            addCriterion("first_cash_award not in", values, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardBetween(Long value1, Long value2) {
            addCriterion("first_cash_award between", value1, value2, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andFirstCashAwardNotBetween(Long value1, Long value2) {
            addCriterion("first_cash_award not between", value1, value2, "firstCashAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardIsNull() {
            addCriterion("all_award is null");
            return (Criteria) this;
        }

        public Criteria andAllAwardIsNotNull() {
            addCriterion("all_award is not null");
            return (Criteria) this;
        }

        public Criteria andAllAwardEqualTo(Long value) {
            addCriterion("all_award =", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardNotEqualTo(Long value) {
            addCriterion("all_award <>", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardGreaterThan(Long value) {
            addCriterion("all_award >", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardGreaterThanOrEqualTo(Long value) {
            addCriterion("all_award >=", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardLessThan(Long value) {
            addCriterion("all_award <", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardLessThanOrEqualTo(Long value) {
            addCriterion("all_award <=", value, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardIn(List<Long> values) {
            addCriterion("all_award in", values, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardNotIn(List<Long> values) {
            addCriterion("all_award not in", values, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardBetween(Long value1, Long value2) {
            addCriterion("all_award between", value1, value2, "allAward");
            return (Criteria) this;
        }

        public Criteria andAllAwardNotBetween(Long value1, Long value2) {
            addCriterion("all_award not between", value1, value2, "allAward");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNull() {
            addCriterion("app_id is null");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNotNull() {
            addCriterion("app_id is not null");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualTo(Integer value) {
            addCriterion("app_id =", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualTo(Integer value) {
            addCriterion("app_id <>", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThan(Integer value) {
            addCriterion("app_id >", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("app_id >=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThan(Integer value) {
            addCriterion("app_id <", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualTo(Integer value) {
            addCriterion("app_id <=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdIn(List<Integer> values) {
            addCriterion("app_id in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotIn(List<Integer> values) {
            addCriterion("app_id not in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdBetween(Integer value1, Integer value2) {
            addCriterion("app_id between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotBetween(Integer value1, Integer value2) {
            addCriterion("app_id not between", value1, value2, "appId");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}